<?php 

	/**
	* 
	*/
	
	class Man extends Animal
	{
		public $name;
		public $age = 18;
		public $hoby;
		function __construct($name,$age,$hoby){
			$this->name=$name;
			$this->age=$age;
			$this->hoby=$hoby;
		}
		private function _action(){
			echo $this->name."吃饭睡觉".$this->hoby;

		}

		function action(){
			$this->_action();
			$this->aa();
		}
		protected function aa(){
			echo "受保护的方法";
		}
	}
















 ?>